package com.zj.springbootmybatisannotation.model;

/**
 * @Auther: zj
 * @Date: 2019/1/19 17:58
 * @Description:
 */

public class User {

    private Integer id;

    private String username;

    private Integer age;

    public User() {

    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    @Override
    public String toString() { //重写toString() 方法，便于打印消息
        return String.format("User[id=%d, username='%s', age=%d]",
                id, username, age);
    }

}
